<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>MultiFileUpload</title>
	</head>
	<body>
		<jsp:include page="/jspdemo/header.jsp" />
		<form action="/test/fileOperateServlet?fileoperate=multifileupload" method="post" enctype="multipart/form-data">
			<table border="1" bordercolor="red">
				<tr><td>Name：</td><td><input type="text" name="username" /></td></tr>
				<tr><td>Interests:</td>
					<td><input type="checkbox" name="interest" value="run">跑步
					<input type="checkbox" name="interest" value="swim">游泳 
					<input type="checkbox" name="interest" value="badminton">羽毛球</td>
				</tr>
				<tr>
					<td>files：</td>
					<td><input type="file" name="file1" /><br>
					<input type="file" name="file2" /></td>
				</tr>
				<tr>
					<td><input type="reset" value="重置" /></td>
					<td><input type="submit"  value="上传"/></td>
				</tr>
			</table>
		</form>
		<br>
		Name:${name }<br>
		Interests:
		<c:forEach items="${interests }" var="interest"> 
			<c:out value="${interest }" />
		</c:forEach><br>
		files：
		<c:forEach items="${allFiles}" var="item"> 
			${item } ||
		</c:forEach>
		<br>
	</body>
</html>